package com.funtl.hello.spring.cloud.alibaba.rocketmq.provider;

import com.funtl.hello.spring.cloud.alibaba.rocketmq.provider.service.ProviderService;
import com.funtl.hello.spring.cloud.alibaba.rocketmq.provider.source.MySource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;

/**
 * @Description :
 * @Author 刘龙
 * @Date 2020/3/30 20:20
 * @Version 1.0
 **/
@SpringBootApplication
@EnableBinding({MySource.class})
public class RocketMQProviderApplication implements CommandLineRunner {

    @Autowired
    private ProviderService providerService;

    @Override
    public void run(String... args) throws Exception {
        providerService.send1("Hello input1");
    }

    public static void main(String[] args) {
        SpringApplication.run(RocketMQProviderApplication.class, args);
    }
}
